package com.youlin.service;

import com.youlin.dto.BaseDataResDto;
import com.youlin.dto.BaseResDto;
import com.youlin.dto.PageDataResDto;
import com.youlin.dto.PageInfo;
import com.youlin.dto.req.EditCustomReqDto;
import com.youlin.dto.res.CMListResDto;
import com.youlin.dto.res.CustomResDto;
import com.youlin.entities.BygCustom;
import com.baomidou.mybatisplus.extension.service.IService;
import java.util.List;

public interface BygCustomService extends IService<BygCustom> {

    BaseResDto editCustom(Integer unitId, EditCustomReqDto data);

    PageDataResDto<List<CMListResDto>> findAllCustoms(String amUuId, PageInfo pageInfo);

    PageDataResDto<List<CMListResDto>> findAllCustoms(Integer unitId, PageInfo pageInfo);

    BaseDataResDto<CustomResDto> findCustomById(Integer customId);

    BaseResDto delCustom(Integer customId);

    BaseResDto editCustomNo(Integer unitId, Integer customId, Boolean toUp);

}